<%@ page import="stravel.City" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="admin">
  <g:set var="entityName" value="${message(code: 'city.label', default: 'City')}" />
  <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>

  <div class="header">

    <h1 class="page-title"><g:message code="default.create.label" args="[entityName]" /></h1>
    <ul class="breadcrumb">
      <li><a href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
      <li><g:link action="index"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
      <li class="active"><g:message code="default.create.label" args="[entityName]" /></li>
    </ul>

  </div>
  <div class="main-content">
    <g:if test="${flash.message}">
      <bootstrap:alert class="alert-info">${flash.message}</bootstrap:alert>
    </g:if>

    <g:hasErrors bean="${cityInstance}">
      <bootstrap:alert class="alert-error">
        <ul>
          <g:eachError bean="${cityInstance}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
          </g:eachError>
        </ul>
      </bootstrap:alert>
    </g:hasErrors>

    <g:form class="form-horizontal" action="create" >

            <g:render template="form"/>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button type="submit" class="btn btn-primary">
            <i class="icon-ok icon-white"></i>
            <g:message code="default.button.create.label" default="Create" />
          </button>
        </div>
      </div>

    </g:form>
  </div>







</body>
</html>